<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
</head>
<body>
    
</body>
</html>
<script>
    function method(r1,r2){
        mianji1 = 3.14*r1*r1;
        mianji2 = 3.14*r2*r2;
        console.log(mianji1);
        console.log(mianji2);
        var sum = mianji1 + mianji2;
        console.log(sum);
    }
    method(4,10);
    function method2(i){
        if((i%4 == 0&&i%100!=0)||i%400 == 0){
            console.log("是闰年")
        }else{
            console.log("不是闰年");
        }
    }
    method2(2000);
</script>